home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / plain / contrib / cascover / manual.tex < prev    next >
Encoding:
Text File  |  1994-02-10  |  6.1 KB  |  153 lines

  1. %----------------------------------------------------------------------------%
  2. % Cassette-cover macros for TeX: MANUAL.TEX (manual)                         %
  3. % Files supplied: CASCOVER.TEX, CASCFONT.TEX, NORMAL.CAS, SMALL.CAS,         %
  4. %                 CCMANMAC.TEX, MANUAL.TEX, MANUAL.DVI, MANUAL.DOC,          %
  5. %                 EXAMPLES.TEX, EXAMPLES.DVI                                 %
  6. % Author: Stijn Raaijmakers                                                  %
  7. % Date: 10/2/94                                                              %
  8. % Package is freeware.                                                       %
  9. %----------------------------------------------------------------------------%
  10.  
  11. \input ccmanmac
  12.  
  13.                        \section Introduction
  14.  
  15. This is the manual of a macropackage I wrote for printing the covers for
  16. cassettes.  It's quite flexible and quite easy to learn.  I tried to keep
  17. this manual short, so it won't cost you that much to print it. -- Stijn
  18. Raaijmakers.
  19.  
  20.  
  21.                 \section General form of a tape-file
  22.  
  23. \hrule \smallskip %----------------------------------------------------
  24.  
  25. {\obeylines %
  26. |\input |\<size-file>|.cas|
  27. |\input cascover|
  28. |\language|\<language>*
  29. |\begintape|
  30. |  \begincontents|
  31. |    \beginside |\<Side>|: |\<Title>| - |\<Author>| (|\<Dolby>|)|
  32. |      \\|\<Title>| - |\<Author>|, |\<Time>*
  33. |      |$\vdots$
  34. |    \title |\<Title>| - |\<Author>*
  35. |      \\|\<Title>| - |\<Author>|, |\<Time>*
  36. |      |$\vdots$
  37. |    \endside|
  38. |    \beginside |\<Side>|: |\<Title>| - |\<Author>| (|\<Dolby>|)|
  39. |      |$\vdots$
  40. |    \endside|
  41. |  \endcontents|
  42. |  \beginfront|
  43. |    \fronttitle |\<Title>| - |\<Author>*
  44. |    |$\vdots$
  45. |  \endfront|
  46. |  \beginflap|
  47. |    |$\vdots$
  48. |  \endflap|
  49. |\endtape|
  50. |\begintape|
  51. |  |$\vdots$
  52. |\endtape|
  53. |\bye|}
  54.  
  55. \smallskip \hrule \smallskip %----------------------------------------
  56. The lines marked * can be omitted.  All \<words> can be omitted, but sometimes
  57. have to be replaced by |{}|, see below.
  58.  
  59. \subsection Comment and empty frames
  60.  
  61. The frames are: |\beginside|\dots|\endside|, |\beginfront|\dots|\endfront| and
  62. |\beginflap|\dots|\endflap|.  In each of these frames you can put normal
  63. comment, because each frame is like a miniscule page.  If you put a |\title|
  64. or |\\| after comment, you have to put a |\par| (empty line) between them.  If
  65. you want a frame to be empty, you have to put |\empty| between |\begin| and
  66. |\end|.
  67.  
  68. \subsection About formatted input macros
  69.  
  70. In the figure above you see a lot of things like
  71. `|\title |\<Title>| - |\<Author>.'  This means you have to type `|\title|,'
  72. \<space>, some words, `| - |,' another word (one) and a \<space> (which is
  73. usually a {\sc return}).  You could type, for instance:
  74. \begintt
  75. \title Pork soda - Primus
  76. \endtt
  77. If the last part of a line like this contains a space (i.e., if |Primus| were
  78. |Mucky Pup|), you'd have to put it between braces, so it would look like this:
  79. \begintt
  80. \title Pork soda - {Mucky Pup}
  81. \endtt
  82. If the first part (|Pork soda|) happens to contain the exact text it should
  83. be followed by (`| - |' in this example), you have to put it between braces
  84. too (so \TeX\ won't see the first `| - |'):
  85. \begintt
  86. \title {Pork - soda} - {Mucky Pup}
  87. \endtt
  88. If something goes wrong here, you'll get some error message like `missing
  89. argument,' `use of \dots\ doesn't match it's definition' or `runaway
  90. argument.'
  91.  
  92. If some part is enclosed by \<space>s, you have to replace it by an empty
  93. group (|{}|), because two \<space>s in a row is just the same as one \<space>.
  94. Have a look at page~202 of {\book the \TeX book\/} and the example files to
  95. find out more about this.
  96.  
  97.  
  98.                   \section Size and dimensions of a cover
  99.  
  100. You can't have any influence on the appearance of your covers, except for 
  101. the margins and the size of it. You can create a library of |.cas| files, in 
  102. which you define different sizes for tape covers. They define the heights of 
  103. the contents, front and flap. You can also change the margins, but you need 
  104. pretty small margins to fit everything on the cover. Have a look at
  105. |normal.cas|, which produces \intextbox{\tapepicture{10.1pt}{6.5pt}{1.3pt}%
  106. {1.7pt}} and |small.cas|, which produces \intextbox{\tapepicture{10.1pt}%
  107. {4.5pt}{1pt}{1.5pt}}.
  108.  
  109.  
  110.                       \section Changing the font
  111.  
  112. You can change the current fontsize with the commands |\small|, 
  113. |\normalsize| and |\large|, which work as in \LaTeX. You can change the 
  114. fontstyle with the commands |\rm|, |\it| and |\em|. You can switch to 
  115. condensed form using |\cond|. This only works for the normal-sized roman 
  116. font, as this is the only one which sometimes needs to be condensed. 
  117. Condensed text looks ugly, but will make sure long titles and author-names 
  118. can be used. The macros don't switch to condensed text automaticly, 
  119. because some people might rather abbrieviate long titles and names.
  120.  
  121. If you want to change the definition of the fonts, you only need to change
  122. the file |cascfont.tex|.  To get the font called |cmrcd7|, just copy the file
  123. |cmr7.mf| to |cmrcd7.mf|, edit |cmrcd7.mf| and change the lines
  124. \begintt
  125. font_identifier:="CMR"; font_size 7pt#;
  126. u#:=15.5/36pt#;      % unit width
  127. \endtt
  128. to
  129. \begintt
  130. font_identifier:="CMRCD"; font_size 7pt#;
  131. u#:=.75 * 15.5/36pt#;      % unit width
  132. \endtt
  133.  
  134.  
  135.                   \section Suggestions and extensions
  136.  
  137. Use an |\empty| front so you can draw a logo.  Use the flap to enter
  138. information like the type of tape used.  I made a macro, so I can type
  139. |\SA90| to get |{\large TDK SA90\qquad}|.
  140.  
  141.  
  142.                    \section More about the macro's
  143.  
  144. All the frames mentioned above create a |\parbox| as in \LaTeX.  You can type
  145. normal text in them, as demonstrated in example~2.  The commands |\begintape|,
  146. |\endcontents|, |\endfront| and |\endflap| create a horizontal line.  This
  147. means you don't have to put them in the order used above.  You could make
  148. a tapecover with a double frame to put the songs on, by simply repeating the
  149. contents part: \intextbox{\testbtape{10.1pt}\testsides{6.5pt}{}{}%
  150. \testsides{6.5pt}{}{}\testfront{1pt}{}\testfront{1.3pt}{}\testetape}.
  151.  
  152. \bye
  153.